package com.hyacinth.dubbo.io.netty.protocol.response;

import com.hyacinth.dubbo.io.netty.protocol.Packet;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import static com.hyacinth.dubbo.io.netty.protocol.command.Command.JOIN_GROUP_RESPONSE;

/**
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
public class JoinGroupResponsePacket extends Packet{

    private String groupId;

    private boolean success;

    private String reason;

    @Override
    public Byte getCommand() {
        return JOIN_GROUP_RESPONSE;
    }
}
